﻿@{
    ViewBag.Title = "Index";
  //  Layout = null;
    Layout = "~/Views/Shared/_EasyUI_Layout.cshtml";
}



<html>
<head>

    <link href="Content/style/red/style.css" type=text/css rel=stylesheet>
    <script src="~/Content/layer/layer.js"></script>
    <style type="text/css">
        .STYLE2 {
            FONT-SIZE: 12px;
        }

        #popitmenu {
            BORDER-RIGHT: black 1px solid;
            BORDER-TOP: black 1px solid;
            Z-INDEX: 100;
            VISIBILITY: hidden;
            FONT: 12px/18px Verdana;
            BORDER-LEFT: black 1px solid;
            BORDER-BOTTOM: black 1px solid;
            POSITION: absolute;
            BACKGROUND-COLOR: white;
        }

            #popitmenu A {
                DISPLAY: block;
                PADDING-LEFT: 6px;
                COLOR: black;
                TEXT-DECORATION: none;
            }

                #popitmenu A:hover {
                    BACKGROUND-COLOR: #ccff9d;
                }
    </style>
    <script src="~/Scripts/login.js"></script>
</head>
<body>
    <div id="loading" style=" BORDER-RIGHT:#dbdce3 1px solid; BORDER-TOP:#dbdce3 1px solid; DISPLAY:none; BORDER-LEFT:#dbdce3 1px solid; BORDER-BOTTOM:#dbdce3 1px solid; POSITION:absolute; BACKGROUND-COLOR:#ffffae">
        <img src="Content/pics/loading.gif" width="32" height="32" align="absMiddle">
        <b>正在处理，请稍候……</b>
    </div>
    <div id="mytips" style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; DISPLAY: none; FONT-SIZE: 9pt; FILTER: progid: DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3); BORDER-LEFT: gray 1px solid; WIDTH: 150px; COLOR: red; BORDER-BOTTOM: gray 1px solid; POSITION: absolute; HEIGHT: 16px; BACKGROUND-COLOR: #ffffff"></div>
    <form name="Form1" method="post" action="ContentPane.aspx" id="Form1">

        <table height="29" cellspacing="0" cellpadding="1" width="98%" border="0">
            <tr>
                <td width="97%">
                    &nbsp;&nbsp;当前位置：
                    <a href='ContentPane.aspx?Path=/'>test</a>
                </td>
                <td width="3%">
                    <div align="right"><a href="user_sms.aspx?type=1"></a></div>
                </td>
            </tr>
        </table>
        <table height="56" width="98%" align="center" border="0">
            <tr>
                <td width="6.25%">
                    <div align="center" onclick="document.all.UpBtn.click();" onmousemove="btnover(this)"
                         onmouseout="btnout(this)">
                        <input type="image" name="UpBtn" id="UpBtn" tabindex="-1" title="向上一级" src="Content/pics/up.gif" style="border-width:0px;" /><br>
                        向上
                    </div>
                </td>
                <td width="6.25%">
                    <div align="center" onclick="document.all.GoRoot.click();" onmousemove="btnover(this)"
                         onmouseout="btnout(this)">
                        <input type="image" name="GoRoot" id="GoRoot" tabindex="-1" title="根目录" src="Content/pics/home.gif" style="border-width:0px;" /><br>
                        根目录
                    </div>
                </td>
                <td width="6.25%">
                    <div align="center" onclick="document.all.RefreshBtn.click();" onmousemove="btnover(this)"
                         onmouseout="btnout(this)">
                        <input type="image" name="RefreshBtn" id="RefreshBtn" tabindex="-1" title="刷新本页" src="Content/pics/fs_refresh.gif" style="border-width:0px;" /><br>
                        刷新
                    </div>
                </td>
                <td id="tdnewfolder" width="6.25%">
                    <div align="center" onclick=" createDir(); "
                         @*onmousemove="btnover(this)" onmouseout="    btnout(this)"*@
                         >
                        <img src="Content/pics/new_folder.gif" alt="新文件夹" border="0"><br>
                        新目录
                    </div>
                </td>
                <td id="tddel" width="6.25%">
                    <div align="center" onclick="document.all.del.click();" onmousemove="btnover(this)" onmouseout="btnout(this)">
                        <input type="image" name="del" id="del" title="删除" src="Content/pics/delete_big.gif" onclick="javascript:return deletefile();" style="border-width:0px;" /><br>
                        删除
                    </div>
                </td>
                <td id="tdcut" width="6.25%">
                    <div align="center" onclick="cutfile('1');" onmousemove="btnover(this)" onmouseout="btnout(this)">
                        <img src="Content/pics/moveto.gif" alt="移动到" border="0"><br>
                        移动到
                    </div>
                </td>
                <td id="tdcopy" width="6.25%">
                    <div align="center" onclick="cutfile('2');" onmousemove="btnover(this)" onmouseout="btnout(this)">
                        <img src="Content/pics/copyto.gif" alt="复制到" border="0"><br>
                        复制到
                    </div>
                </td>
                <td id="tddown" width="6.25%">
                    <div align="center" onmousemove="btnover(this)"
                         onmouseout="btnout(this)" onclick="downfile();">
                        <img src="Content/pics/download.gif" alt="批量下载" border="0"><br>
                        下载
                    </div>
                </td>

                <td id="tdzip" width="6.25%">
                    <div align="center" onclick="zipfile();" onmousemove="btnover(this)" onmouseout="btnout(this)">
                        <img src="Content/pics/zip.gif" alt="压缩成ZIP文件" border="0"><br>
                        压缩
                    </div>
                </td>

                <td id="tdunzip" width="6.25%">
                    <div align="center" onclick="unzipfile();" onmousemove="btnover(this)" onmouseout="btnout(this)">
                        <img src="Content/pics/decompress.gif" alt="解压缩ZIP文件" border="0"><br>
                        解压缩
                    </div>
                </td>

                <td width="6.25%">
                    <div align="center" onclick="document.all.search.click();" onmousemove="btnover(this)"
                         onmouseout="btnout(this)">
                        <input type="image" name="search" id="search" title="搜索" src="Content/pics/ab_search.gif" style="border-width:0px;" /><br>
                        搜索
                    </div>
                </td>
                <td id="s" width="6.25%">
                    <div align="center" onclick="document.all.pic.click();" onmousemove="btnover(this)" onmouseout="btnout(this)">
                        <input type="image" name="pic" id="pic" title="缩略图" src="Content/pics/spic.gif" style="border-width:0px;" /><br>
                        <span id="sltxt">缩略图</span>
                    </div>
                </td>
                <td id="tdupload" width="6.25%">
                    <div align="center" onclick="document.all.upload.click();" onmousemove="btnover(this)"
                         onmouseout="btnout(this)">
                        <input type="image" name="upload" id="upload" title="上传文件" src="Content/pics/upload.gif" style="border-width:0px;" /><br>
                        上传
                    </div>
                </td>
                <td id="tdshare" width="6.25%">
                    <div align="center" onclick="document.all.share.click();" onmousemove="btnover(this)"
                         onmouseout="btnout(this)">
                        <input type="image" name="share" id="share" title="共享" src="Content/pics/sharing.gif" style="border-width:0px;" /><br>
                        共享
                    </div>
                </td>

            </tr>
        </table>
        <div align="center">
            <table class="GridBody" cellspacing="0" rules="all" border="1" id="DataGrid" style="width:98%;border-collapse:collapse;">
                <tr id="DataGrid_-1" class="GridHead">
                    <td align="center" style="width:3%;">
                        <input type="checkbox" name="chkSelect" id="chkSelect" onclick='checkAll();' />
                    </td>
                    <td align="center" style="width:5%;">
                        <a href='contentpane.aspx?type=pic desc'>类</a>
                    </td>
                    <td align="center">
                        <a href='contentpane.aspx?type=name desc'>名称</a>
                    </td>
                    <td align="center" style="width:10%;">
                        <a href='contentpane.aspx?type=size desc'>大小</a>
                    </td>
                    <td align="center" style="width:17%;">
                        <a href='contentpane.aspx?type=update desc'>更新时间</a>&nbsp;<img src=Content/pics/arrow1.gif>
                    </td>
                    <td align="center" style="width:3%;">改</td>
                    <td align="center" style="width:3%;">注</td>
                </tr>
                <tr id="DataGrid_0" class="GridItem" onmouseover="over(this)" onmouseout="over(this)">
                    <td align="center">
                        <input type=checkbox name=checkbox id=chkSelect onclick='AddRemoveValues(this)' value='%2fAAAA/'>
                    </td>
                    <td align="center">
                        <img src=Content/pics/folder.gif>
                    </td>
                    <td>
                        <a href='ContentPane.aspx?Path=%2fAAAA/'>AAAA</a><span id='b0'></span>
                    </td>
                    <td align="right"></td>
                    <td align="center">
                        2016/12/4 12:33:46
                    </td>
                    <td align="center"><a href="javascript:void(0)" onclick="RenameInit('AAAA',this,'b0')" title=重命名AAAA><img src='Content/pics/rename.gif' border=0></a></td>
                    <td align="center"><a href="javascript:void(0)" onclick="AddNoteInit('AAAA','b0')" title='添加注释AAAA'><img src=Content/pics/icon_edit.gif border=0></a></td>
                </tr>
                <tr id="DataGrid_1" class="GridLine" onmouseover="over(this)" onmouseout="over(this)">
                    <td align="center">
                        <input type=checkbox name=checkbox id=chkSelect onclick='AddRemoveValues(this)' value='%2ftest/'>
                    </td>
                    <td align="center">
                        <img src=Content/pics/folder.gif>
                    </td>
                    <td>
                        <a href='ContentPane.aspx?Path=%2ftest/'>test</a><span id='b1'></span>
                    </td>
                    <td align="right"></td>
                    <td align="center">
                        2016/12/4 12:33:22
                    </td>
                    <td align="center"><a href="javascript:void(0)" onclick="RenameInit('test',this,'b1')" title=重命名test><img src='Content/pics/rename.gif' border=0></a></td>
                    <td align="center"><a href="javascript:void(0)" onclick="AddNoteInit('test','b1')" title='添加注释test'><img src=Content/pics/icon_edit.gif border=0></a></td>
                </tr>
                <tr id="DataGrid_2" class="GridItem" onmouseover="over(this)" onmouseout="over(this)">
                    <td align="center">
                        <input type=checkbox name=checkbox id=chkSelect onclick='AddRemoveValues(this)' value='%2f%ce%d2%b5%c4%ce%c4%bc%fe/'>
                    </td>
                    <td align="center">
                        <img src=Content/pics/folder.gif>
                    </td>
                    <td>
                        <a href='ContentPane.aspx?Path=%2f%ce%d2%b5%c4%ce%c4%bc%fe/'>我的文件</a><span id='b2'></span>
                    </td>
                    <td align="right"></td>
                    <td align="center">
                        2016/11/26 18:42:17
                    </td>
                    <td align="center"><a href="javascript:void(0)" onclick="RenameInit('我的文件',this,'b2')" title=重命名我的文件><img src='Content/pics/rename.gif' border=0></a></td>
                    <td align="center"><a href="javascript:void(0)" onclick="AddNoteInit('我的文件','b2')" title='添加注释我的文件'><img src=Content/pics/icon_edit.gif border=0></a></td>
                </tr>
            </table>
            <div class="STYLE2"></div>

            <table width="100%" border="0" align="center">
                <tr>
                    <td>
                        <div id="content"><input name="checkbox" type="checkbox" style="DISPLAY:none"></div>
                    </td>
                </tr>
            </table>
        </div>
        <table width="98%" border="0">
            <tr>
                <td width="33%">
                    &nbsp;
                    <span id="info" style="display:inline-block;height:18px;width:432px;">共计：3个文件夹，0个文件  0 Byte</span>
                </td>
                <td width="67%">
                    <div align="right"></div>
                </td>
            </tr>
        </table>

    </form>
    <div align="center"></div>
<div id="tc"></div>

    <div id="dlgCreateDir" class="easyui-dialog" title="创建目录" data-options="iconCls:'icon-save'" style="width:400px;height:200px; padding: 10px;display: none">
        <input class="easyui-textbox" name="dirName" id="dirName" style="width:100%" data-options="label:'Name:',required:true">
        <div style="text-align:center;padding:5px 0">
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="saveDir()"   style="width:80px">创建</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlgcreatedir').dialog('close')" style="width:80px">取消</a>
        </div>

    </div>

</body>
</html>


<script>
    function createDir() {
        alert("ss")
        $('#dlgCreateDir').dialog('open')
    }

    function saveDir() {
        $.ajax({
            url: "/MyWebFile/CreateDir",
            type: 'POST',
            dataType: 'JSON',
            data: {
                dirName: $("#dirName").val(),
                //currentDir: $("#pwd").val(),
            },
            success: function (data) {
                layer.alert(data.msg);
                if (data.flag) {
                    $('#dlgcreatedir').dialog('close')
                }



            },
            error: function () {
                layer.alert("系统错误");
            }
        });
    }
</script>